class Solution {
public:
    string triangleType(vector<int>& nums) {
       int a = nums[0], b = nums[1], c = nums[2];
       if (a > b) swap(a, b);
       if (b > c) swap(b, c);
       if (a > b) swap(a, b);
       if (c - a >= b) return "none";
       if (a == b && b == c) return "equilateral";
       if (a == b || a == c || b == c) return "isosceles";
       return "scalene";
    }
};
